]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add a toggle-overview keybinding
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Apr 2013 23:26:06 +0000 (19:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 19 Apr 2013 00:34:41 +0000 (20:34 -0400)
This is a new, regular keybinding for going to the overview.
The default binding is Super-S, which goes well with Super-A
for going to the application grid.
This is separate from the existing panel-main-menu keybinding,
so that we can keep Alt-F1 opening the main menu in classic mode.

https://bugzilla.gnome.org/show_bug.cgi?id=698251

data/50-gnome-shell-system.xml.in
data/org.gnome.shell.gschema.xml.in.in
js/ui/viewSelector.js

index 92858c59dcbafdc6a44bb8d25fcdf43e13bf2ab6..3e8c6f847bf197a48ba2f0ede9f4985570381fac 100644 (file)
@@ -11,6 +11,9 @@
        <KeyListEntry name="focus-active-notification"
                       _description="Focus the active notification"/>
 
+       <KeyListEntry name="toggle-overview"
+                      _description="Show the overview"/>
+
        <KeyListEntry name="toggle-application-view"
                       _description="Show all applications"/>
 
index bacb6b1c8ca0ddbffd2080fd5faf176c58545088..7aae0ae460e0396a29b1cc6be047cd5e1f83284f 100644 (file)
@@ -117,6 +117,13 @@ value here is from the GsmPresenceStatus enumeration.</_summary>
         Overview.
       </_description>
     </key>
+    <key name="toggle-overview" type="as">
+      <default>["&lt;Super&gt;s"]</default>
+      <_summary>Keybinding to open the overview</_summary>
+      <_description>
+        Keybinding to open the Activities Overview.
+      </_description>
+    </key>
     <key name="toggle-message-tray" type="as">
       <default>["&lt;Super&gt;m"]</default>
       <_summary>Keybinding to toggle the visibility of the message tray</_summary>
index 0fd242de88d75e5a54fc18513b07f634d4c662e1..639acf30b65b9298fbe5312bf7073fd1f9dedca4 100644 (file)
@@ -150,6 +150,14 @@ const ViewSelector = new Lang.Class({
                               Shell.KeyBindingMode.NORMAL |
                               Shell.KeyBindingMode.OVERVIEW,
                               Lang.bind(this, this._toggleAppsPage));
+
+        Main.wm.addKeybinding('toggle-overview',
+                              new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+                              Meta.KeyBindingFlags.NONE,
+                              Shell.KeyBindingMode.NORMAL |
+                              Shell.KeyBindingMode.OVERVIEW,
+                              Lang.bind(Main.overview, Main.overview.toggle));
+
     },
 
     _toggleAppsPage: function() {